/************************************************************************

Copyright (C) 2013 Georges Nader (georgesnader90@gmail.com). All rights reserved.

This file is part of gpe (Graphical Plot Editor).

gpe is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.

gpe is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with gpe.  If not, see <http://www.gnu.org/licenses/>.

************************************************************************/

#include "ploteditor.h"

void
PlotEditor::resetControlPoints()
{
  _controlPoints.clear();
  if(_plot){
    _controlPoints.resize(_plot->size(), false);
    //first and last points are automatically considered as control points
    addControlPoint(0);
    addControlPoint(_plot->size()-1);
  }
}
